function generateTimestampUUID(): string {
  // 获取当前时间戳（毫秒）
  const timestamp = Date.now() / 100 + 0x01b21dd213814000;

  // 生成随机数
  const randomPart = Math.random().toString(16).substring(2);

  // 构造 UUID
  const uuid = [
    (timestamp & 0xffffffff00000000) >>> 0,
    timestamp & 0x00000000ffffffff,
    randomPart.substr(0, 4),
    randomPart.substr(4, 4),
    randomPart.substr(8),
  ]
    .map((part) => ('00000' + part.toString(16)).substr(-8))
    // .join('-');
    .join('');

  return uuid;
}

export default {
  generateTimestampUUID,
};
